package com.ld.xxssglxt.service.impl;

import com.ld.xxssglxt.mapper.AdminMapper;
import com.ld.xxssglxt.pojo.Admin;
import com.ld.xxssglxt.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService {
    @Resource // 会自动从Spring的容器中去获取AdminMapper的实例
    private AdminMapper mapper;
    @Override
    public Admin login(String account, String password) {
        return mapper.login(account, password);
    }
}
